import Mock from 'mockjs'
const Random = Mock.Random
export const getUserInfo = options => {
  const template = {
    'str|2-4': 'sjf',
    'age|+2': 5,
    'img': Random.image('100x100', '#ccff00', 'sjf'),
    'fruit': Random.fruit
  }
  let arr = []
  for (let i = 4; i > 0; i--) {
    arr.push(template)
  }
  return Mock.mock(arr)
}

// 设置延迟响应的时间
Mock.setup({
  timeout: 300
})
